package mt.teste;

import static org.junit.Assert.assertEquals;
import mt.Order;
import mt.comm.ClientSideMessage.Type;
import mt.dummy.ClientSideMessageDummy;

import org.junit.Test;

public class TesteClientSideMessageDummy {
	
	@Test
	public void testeSideMessage(){
		Order orderBuy = Order.createBuyOrder("TesteBuy", "BES", 100, 1);
		Order orderSell = Order.createSellOrder("TesteSell", "BES", 100, 1);
		
		ClientSideMessageDummy clienteBuy= new ClientSideMessageDummy(Type.ORDER, orderBuy);
		ClientSideMessageDummy clienteSell= new ClientSideMessageDummy(Type.ORDER, orderSell);
		
		assertEquals(clienteBuy.getOrder(),orderBuy);
		assertEquals(clienteSell.getOrder(),orderSell);
		
		assertEquals(clienteBuy.getType(),Type.ORDER);
		clienteBuy.getError();
		
		
		
		
		
	}

}
